setPositionYMode

abstract fun setPositionYMode(block: DesignBlock, mode: PositionMode)

Set a block's mode for its y position. The position refers to the block's local space, relative to its parent with the origin at the top left. Required scope: "layer/move"

A page slice takes its position from its page, so the call fails with BLOCK.POSITION_PARENT_CONTROLLED on one.

Parameters

block

the block to update.

mode

the y position mode.